package cn.lx.resource;

import cn.lx.utils.JerseyTool;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.core.Response;

/**
 * Created by Administrator on 2017/3/14.
 */
@Path("/test")

public class TestResource {
    @GET
    @Path("/test1")
    public String get1(){
        return "test1";
    }


    @GET
    @Path("/test2")

    public Response get2(){
        return JerseyTool.returnSuccess("test2");
    }

}
